import axios from "@/http/http.js";
// 封装获取医疗机构信息下拉框接口
export const healthInstitutionFindAPI = (data) => {
    return axios({
        url: '/healthInstitution/findHealthInstitutionDropDown',
        method: 'post',
        data
    })
};

// 封装获取医疗机构信息接口
export const healthInstitutionsFindAPI = (data) => {
    return axios({
        url: '/healthInstitution/find',
        method: 'post',
        data
    })
};

// 封装修改医疗机构信息接口
export const healthInstitutionUpdateAPI = (data) => {
    return axios({
        url: '/healthInstitution/update',
        method: 'put',
        data
    })
};

// 封装添加医疗机构信息接口
export const healthInstitutionAddAPI = (data) => {
    return axios({
        url: '/healthInstitution/add',
        method: 'post',
        data
    })
};

// 封装删除医疗机构信息接口
export const healthInstitutionDeleteAPI = (data) => {
    return axios({
        url: '/healthInstitution/delete',
        method: 'put',
        data,
        headers: { "content-type": "application/x-www-form-urlencoded" }
    })
};